extends Talent
func init():
	name = "亡语专精"

func _connect():
	sys.main.connect("onBattleStart",self,"onBattleStart")

func onBattleStart():
	for i in sys.main.btChas:
		if i.team == 1 and i.has_method("deathWord"):
			i.addBuff(b_deathWordMaster.new(lv))

class b_deathWordMaster:
	extends "../../azurlane_ctrl/AzurBuff.gd"
	var tlv = 1
	func _init(tlv):
		attInit()
		id = "b_deathWordMaster"	
		dispel = 2
		self.tlv = tlv
	var index = 0
	func _upS():
		index += 1
		if index >= (16-tlv) and not masCha.isDeath:
			index = 0
			masCha.deathWord()
# 15 14 13 12 11
func get_info():
	return "战斗开始之后每%d秒，触发我方所有角色的亡语效果"%[16-lv]
